@(category : Category)

@import helper._

<li>
	@category.getName()
	@form(controllers.category.routes.CategoryController.delete(category.getId())) {
  	<input class="btn-primary btn-xs" type="submit" value="Delete">
  }
	@if(!category.getChildren().isEmpty()){
		<ul>
			@for(subCat <- category.getChildren()){
				@categoryItem(subCat)
			}
		</ul>
	}
</li>